import { Map } from "immutable"

const defaultState = Map({
    userInfo: [],
})

const reducer = (state = defaultState, action) => {
    switch(action.type){
        case 'loadDataUserInfo':
            return state.set('userInfo',action.userInfo)
        default:
            return state
    }
}

export default reducer